from django.db import models

# Create your models here.

class File(models.Model):
    file = models.FileField()

    def __str__(self):
        return self.file

    class Meta:
        db_table = 'file'


class myTask(models.Model):
    task_id = models.CharField(max_length=40)
    apk_name = models.CharField(max_length=100)
    detect_time = models.DateTimeField('date detected')
    harmful_msg_num = models.IntegerField(default=0)
    total_msg_num = models.IntegerField(default=0)
    apk_url = models.CharField(max_length=200)
    report_url = models.CharField(max_length=200)

    def __str__(self):
        return self.apk_name